package com.yue.ssa.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yue.ssa.bean.User;
import org.apache.ibatis.annotations.Select;

public interface UserMapper extends BaseMapper<User> {
    @Select("select * from user where username=#{username}")
    User loadUserByUsername(String username);

    @Select("select * from user where email=#{email}")
    User loadUserByEmail(String email);
}
